# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': '/static/favicon.ico'}),

    url(r'^$', 'views.home', name='home'),
    url(r'^user_guide', 'views.user_guide', name='user_guide'),
    
    url(r'^login.html', 'views.login_view', name='login'),
    url(r'^logout.html', 'views.logout_view', name='logout'),
    
    url(r'^erp/', include('warehouse.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
)

urlpatterns += staticfiles_urlpatterns()
